package com.example.service;

import com.example.entity.User;
import java.util.List;

public interface UserService {
    User findByUsername(String username);
    User findByUsernameAndPassword(String username, String password);
    List<User> findAll();
    User findById(Long id);
    void addUser(User user);
    void updateUser(User user);
    void deleteUser(Long id);
    void updatePassword(String username, String oldPassword, String newPassword);
} 